//
//  LocalVO.m
//  Futbol5Final
//
//  Created by Johan Chaves on 4/14/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "LocalVO.h"

@implementation LocalVO

@synthesize nombre,distrito,idLocal,direccion,canchas;

-(id) initWithData:(DistritosVO*)pdistrito:(NSDictionary *)canchasData:(NSString *)pnombre:(NSString *)pdireccion:(UITableViewCellStyle)style :(int)idP reuseIdentifier:(NSString *)reuseIdentifier
{
    
    nombre = pnombre;
    idLocal = idP;
    canchas = canchasData;
    distrito = pdistrito;
    direccion = pdireccion;
    
    self = [self initWithStyle:style reuseIdentifier:reuseIdentifier];
    return self;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {        
        
        self.textLabel.text = nombre;
        
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        
        [self.textLabel setFont:[UIFont boldSystemFontOfSize:14.0]];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
